package com.kob.backend.service.impl.order;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kob.backend.mapper.OrdersMapper;
import com.kob.backend.pojo.orders;
import com.kob.backend.service.order.OrderGetinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderGetinfoServiceImpl implements OrderGetinfoService {
    @Autowired
    private OrdersMapper ordersMapper;
    @Override
    public List<orders> getorderinfo(Integer userid) {
        QueryWrapper queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("userid",userid);
        return ordersMapper.selectList(queryWrapper);
    }
}
